package com.outsource.framework.util.unicom.news.sms;


import java.io.IOException;

import org.amplatform.common.exception.BpoException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.xml.sax.SAXException;

import com.sinovatech.ntf.send.NtfplatService;


public class SmsClient{
	private static final Log log = LogFactory.getLog(SmsClient.class);

	public void sendSms(String mobileNo,String msg) throws BpoException{
		log.info(":::send:::sms:::mobileNo:" + mobileNo + ":::msg:" + msg);
		NtfplatService sendsingle=new NtfplatService();
		String bizCode="11001";
		String bizName="sdlttg";
		String taskName="sdlttg2";
		String content=msg;
		String target=mobileNo;
		try {
			sendsingle.sendSingle(bizCode, bizName, taskName, content, target);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
